home *** CD-ROM | disk | FTP | other *** search
Wrap
/** Help and code descriptions */ final class helpStrings { public static final String General = "<FONT COLOR='#FF0000'>General Overview: (See frequently asked questions or the SDKDemo example code for more details)<br>" + " <FONT COLOR='#0000C0'>To connect using Java to the IMSI SDK use the following syntax:<br>" + " <FONT COLOR='#0000FF'>imsigx40.IApplication m_IApp = (imsigx40.IApplication) new imsigx40.XApplication();<br><br>" + " <FONT COLOR='#0000C0'>To load a drawing:<br>" + " <FONT COLOR='#0000FF'>imsigx40.Drawings m_IDrawings = (imsigx40.Drawings) m_IApp.getDrawings();<br>" + " <FONT COLOR='#0000FF'>com.ms.com.Variant nParam = new com.ms.com.Variant(); <FONT COLOR='#0080A0'>// create a variant to use as blank parameter<br>" + " <FONT COLOR='#0000FF'>nParam.noParam(); <br>" + " <FONT COLOR='#0000FF'>imsigx40.IDrawing m_ITheDrawing = (imsigx40.IDrawing) m_IDrawings.Open(m_fileName, nParam, nParam);<br><br>" + " <FONT COLOR='#0000C0'>To display a drawing or graphics:<br>" + " <FONT COLOR='#0000FF'>m_IViews = (imsigx40.Views) m_ITheDrawing.getViews(); <FONT COLOR='#0080A0'>// get a views collection (container)<br>" + " <FONT COLOR='#0000FF'>m_ITheView = (imsigx40.View) m_IViews.Add(nParam, nParam);<br>" + " <FONT COLOR='#0000FF'>m_ITheView.putUpdate(b); <FONT COLOR='#0080A0'>// delay update until refresh()<br>" + " <FONT COLOR='#0000FF'>int CompHwnd = 0;<br>" + " <FONT COLOR='#0000FF'>ComponentPeer p = this.getPeer(); <FONT COLOR='#0080A0'>// get peer<br>" + " <FONT COLOR='#0000FF'>ComponentPeerX peer1 = (ComponentPeerX) p;<br>" + " <FONT COLOR='#0000FF'>CompHwnd = peer1.gethwnd(); <FONT COLOR='#0080A0'>// Microsoft specific method to get window handle<br>" + " <FONT COLOR='#0000FF'>m_ITheView.putHWND(CompHwnd);<br>" + " <FONT COLOR='#0000FF'>m_ITheView.putMappingMode(1);<br>" + " <FONT COLOR='#0000FF'>byte b = 0;<br>" + " <FONT COLOR='#0000FF'>m_ITheView.putMargins(b); <FONT COLOR='#0080A0'>// No margins<br>" + " <FONT COLOR='#0000FF'>b = 1; // set to same aspect ratio<br>" + " <FONT COLOR='#0000FF'>m_ITheView.putFixedAspectRatio (b);<br>" + " <FONT COLOR='#0000FF'>m_ITheView.ZoomToExtents(); <FONT COLOR='#0080A0'>// Zoom to the largest extents of the drawing. This is used only for new drawings and if graphics are larger than the screen<br>" + " <FONT COLOR='#0000FF'>m_ITheView.Refresh(); <FONT COLOR='#0080A0'>// Call the SDK's Refresh method.<br>" ; }